package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 章节课件DTO
 *
 * @author: yangyongchuan
 * @create: 2020年08月24日 23:09
 */
@ApiModel("章节课件DTO")
@Data
public class ChapterCoursewareDTO implements BaseDTO {

	private static final long serialVersionUID = 3298130368795582279L;
	/**
	 * 章节课件ID
	 */
	@ApiModelProperty("章节课件ID")
	private Integer chcoId;

	/**
	 * 课件ID
	 */
	@ApiModelProperty("课件ID")
	@NotNull(message = "课件ID不能为空", groups = {Edit.class})
	private Integer coursewareId;

	/**
	 * 课件别名
	 */
	@ApiModelProperty("课件别名")
	@NotNull(message = "课件别名不能为空", groups = {Edit.class})
	@NotEmpty(message = "课件别名不能为空", groups = {Edit.class})
	private String coursewareAlias;

	/**
	 * 试题ID
	 */
	@ApiModelProperty("试题ID")
	private Integer questionsId;

	/**
	 * 排序
	 */
	@ApiModelProperty("排序")
	@NotNull(message = "课件排序不能为空", groups = {Edit.class})
	private Integer sortOrder = 0;
}
